package com.indexingsystem.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.indexingsystem.boss.Vo.SpecialResourceDatasVo;
import com.indexingsystem.boss.admin.mapper.SpecialResourceDatasMapper;
import com.indexingsystem.boss.entity.SpecialResourceDatas;
import com.indexingsystem.system.service.ISpecialResourceDatasService;

@Service
public class SpecialResourceDatasServiceImpl implements ISpecialResourceDatasService {

	@Resource
	private SpecialResourceDatasMapper specialResourceDatasMapper;

	@Override
	public int insert(SpecialResourceDatas record) {
		return specialResourceDatasMapper.insert(record);
	}

	@Override
	public int insertSelective(SpecialResourceDatas record) {
		return specialResourceDatasMapper.insertSelective(record);
	}

	@Override
	public int batchAddSpecialResourceDatas(List<SpecialResourceDatas> list) {
		return specialResourceDatasMapper.batchAddSpecialResourceDatas(list);
	}

	@Override
	public int batchUpdateSpecialResourceDatas(List<SpecialResourceDatas> list) {
		return specialResourceDatasMapper.batchUpdateSpecialResourceDatas(list);
	}

	@Override
	public int deleteSpecialResourceDatasByIdBatch(List<String> list) {
		return specialResourceDatasMapper.deleteSpecialResourceDatasByIdBatch(list);
	}

	@Override
	public SpecialResourceDatas selectByPrimaryKey(String resId) {
		return specialResourceDatasMapper.selectByPrimaryKey(resId);
	}

	@Override
	public int deleteByPrimaryKey(String resId) {
		return specialResourceDatasMapper.deleteByPrimaryKey(resId);
	}

	/**
	 * 通过resid获取资源终端关系列表.
	 * 
	 * @param resId
	 * @return
	 */
	@Override
	public List<SpecialResourceDatasVo> getSpecialResourceDataByResId(String resId) {
		return specialResourceDatasMapper.getSpecialResourceDataByResId(resId);
	}
	
	/**
	 * 通过resid获取资源终端关系列表.
	 * 
	 * @param resId
	 * @return
	 */
	@Override
	public List<SpecialResourceDatas> getSpecialResourceDataListByResId(String resId){
		return specialResourceDatasMapper.getSpecialResourceDataListByResId(resId);
	}

	@Override
	public SpecialResourceDatas selectByQuerySpecialResDatas(SpecialResourceDatas querySpecialResDatas) {
		// TODO Auto-generated method stub
		return specialResourceDatasMapper.selectByQuerySpecialResDatas(querySpecialResDatas);
	}
}